package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProMaintenMapper;
import com.ruoyi.system.domain.ProMainten;
import com.ruoyi.system.service.IProMaintenService;

/**
 * 项目维护Service业务层处理
 *
 * @author ruoyi
 * @date 2024-09-30
 */
@Service
public class ProMaintenServiceImpl implements IProMaintenService
{
    @Autowired
    private ProMaintenMapper proMaintenMapper;

    /**
     * 查询项目维护
     *
     * @param projectId 项目维护主键
     * @return 项目维护
     */
    @Override
    public ProMainten selectProMaintenByProjectId(Long projectId)
    {
        return proMaintenMapper.selectProMaintenByProjectId(projectId);
    }

    /**
     * 查询项目维护列表
     *
     * @param proMainten 项目维护
     * @return 项目维护
     */
    @Override
    public List<ProMainten> selectProMaintenList(ProMainten proMainten)
    {
        return proMaintenMapper.selectProMaintenList(proMainten);
    }

    /**
     * 新增项目维护
     *
     * @param proMainten 项目维护
     * @return 结果
     */
    @Override
    public int insertProMainten(ProMainten proMainten)
    {
        return proMaintenMapper.insertProMainten(proMainten);
    }

    /**
     * 修改项目维护
     *
     * @param proMainten 项目维护
     * @return 结果
     */
    @Override
    public int updateProMainten(ProMainten proMainten)
    {
        return proMaintenMapper.updateProMainten(proMainten);
    }

    /**
     * 批量删除项目维护
     *
     * @param projectIds 需要删除的项目维护主键
     * @return 结果
     */
    @Override
    public int deleteProMaintenByProjectIds(Long[] projectIds)
    {
        return proMaintenMapper.deleteProMaintenByProjectIds(projectIds);
    }

    /**
     * 删除项目维护信息
     *
     * @param projectId 项目维护主键
     * @return 结果
     */
    @Override
    public int deleteProMaintenByProjectId(Long projectId)
    {
        return proMaintenMapper.deleteProMaintenByProjectId(projectId);
    }
}
